angular.module('app').directive('appHeaderBar', [() => {
  return {
    replace: true,
    restrict: 'AE',
    templateUrl: 'view/template/headBar.html',
    scope: {
      text: '@'
    },
    link: ($scope) => {
      $scope.back = () => {
        window.history.back();
      }
    }
  }
}])
